using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class mainmenubuttons_0020quit : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024q_0024401 : GenericGenerator<WaitForSeconds>
	{
		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024();
		}
	}

	public AudioClip clip;

	public Texture pressed;

	public Texture unpressed;

	public GUITexture gui;

	public int guinsx;

	public int guinsy;

	public int guinsw;

	public int guinsh;

	public int state;

	public void Start()
	{
		state = 1;
	}

	public void Update()
	{
		if (UnityEngine.Input.GetKeyDown(KeyCode.Escape))
		{
			StartCoroutine(q());
		}
		if (UnityEngine.Input.touchCount > 0)
		{
			Touch touch = Input.touches[0];
			if (touch.phase == TouchPhase.Began && GetComponent<GUITexture>().HitTest(touch.position))
			{
				AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
				gui.texture = pressed;
				StartCoroutine(q());
			}
		}
		if (UnityEngine.Input.touchCount == 0)
		{
			gui.texture = unpressed;
		}
	}

	public IEnumerator q()
	{
		return new _0024q_0024401().GetEnumerator();
	}

	public void Main()
	{
	}
}
